package main

import (
	"common/config"
	"common/initialization"
	grpc2 "google.golang.org/grpc"
	"meal_products_srv/grpc"
	"meal_products_srv/service"
)

func main() {
	initialization.InitLogs()
	config.InitViper()
	initialization.InitNachos()
	cf := initialization.Config.ProductServer
	initialization.InitMysql()
	initialization.InitRedis()
	grpc.ProductRegisterGrpc(cf.Hort, cf.Port, func(serv *grpc2.Server) {
		service.Register(serv)
	})
}
